//申请退款
function findSellerBySellerID() {
    var data = {
        "sellerAddress": 5
    }
    $.ajax({
        url: "findSellerBySellerID",
        type: "POST",
        dataType: "json",
        data: JSON.stringify(data),
        contentType: 'application/json;charset=utf-8',
        async: false,
        success: function (data) {
            if (data.code == 200) {
                var code = '';
                for (var i = 0; i < data.seller_List.length; i++) {
                    code += " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>用户昵称\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerNickname + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n" +
                        " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>用户账号\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerLoginName + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n" +
                        " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>用户姓名\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerName + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n" +
                        " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>用户性别\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerSex + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n" +
                        " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>身份证号\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerIDNumber + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n" +
                        " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>用户年龄\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerAge + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n" +
                        " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>手机号码\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerPhone + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n" +
                        " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>电子邮件\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerEmail + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n" +
                        " <div class=\"layui-form-item\">\n" +
                        "                        <label class=\"layui-form-label\">\n" +
                        "                            <span class='x-red'>*</span>家庭地址\n" +
                        "                        </label>\n" +
                        "                        <div class=\"layui-input-block\">\n" +
                        "                            <input type=\"text\" readonly name=\"name\" autocomplete=\"off\" \n" +
                        "                                   class=\"layui-input\" value=" + data.seller_List[i].sellerAddress + ">\n" +
                        "                        </div>\n" +
                        "                    </div>\n";
                }
                $("#findSellerBySellerID").html("");
                $("#findSellerBySellerID").append(code);
                $("#ddd").html("");
                $("#ddd").append(data.seller_List[0].sellerNickname);
            }
        }
    });
}

$(function () {
    findSellerBySellerID();
});